<nz-modal [(nzVisible)]="isVisible" [nzMaskClosable]="false" [nzTitle]="'综合测评信息'" (nzOnCancel)="handleCancel()"
  [nzFooter]="detailFooter" nzWidth="1200">
  <div style="height:600px; overflow-y:auto; overflow-x: hidden; padding-left: 15px;" class="scrollbar">
    <form nz-form [formGroup]="validateForm" #myForm="ngForm">
      <div nz-row [nzGutter]="16">
        <b style="color: red;">基本信息</b>
        <nz-divider nzType="horizontal"></nz-divider>
        <div nz-col [nzSpan]="8">
          <nz-form-item nzFlex nz-row>
            <nz-form-label [nzSpan]="10">测评年度</nz-form-label>
            <nz-form-control [nzSpan]="14">
              <div class="editable-cell">
                <div class="editable-cell-value-wrap text-truncate">
                  {{ comprehensiveScore?.year + ' - ' + comprehensiveScore?.nextYear + '学年' }}
                </div>
              </div>
            </nz-form-control>
          </nz-form-item>
        </div>
        <div nz-col [nzSpan]="8">
          <nz-form-item nzFlex nz-row>
            <nz-form-label [nzSpan]="10">流程状态</nz-form-label>
            <nz-form-control [nzSpan]="14">
              <div class="editable-cell">
                <div class="editable-cell-value-wrap text-truncate">
                  {{
                  comprehensiveScore?.compAssessProcessStatus === 'SELF_ASSESSMENT'
                    ? '学生自评'
                    : comprehensiveScore?.compAssessProcessStatus === 'CLASS_ASSESSMENT'
                    ? '班级评议'
                    : comprehensiveScore?.compAssessProcessStatus === 'GRADE_REVIEW'
                    ? '年级复审'
                    : comprehensiveScore?.compAssessProcessStatus === 'DONE_ASSESSMENT'
                    ? '公示3天'
                    : comprehensiveScore?.compAssessProcessStatus === 'DONE_CLOSE'
                    ? '审结'
                    : '审结2'
                }}
                </div>
              </div>
            </nz-form-control>
          </nz-form-item>
        </div>
        <div nz-col [nzSpan]="8">
          <!-- <nz-form-item nzFlex nz-row>
          <nz-form-label nzFor="studyStatus" [nzSpan]="10">修读状态</nz-form-label>
          <nz-form-control nz-col [nzSpan]="14" nzHasFeedback>
            <nz-select [(ngModel)]="comprehensiveScore.studyStatus" formControlName="studyStatus" nzAllowClear
              *ngIf="!isPreView; else studyStatusTemp">
              <nz-option nzValue="SELECKED_CLASS" nzLabel="已选未修"></nz-option>
              <nz-option nzValue="OPEN_CLASS" nzLabel="在修未结课"></nz-option>
              <nz-option nzValue="END_CLASS" nzLabel="已结课"></nz-option>
            </nz-select>
            <ng-template #studyStatusTemp>
              <div class="editable-cell">
                <div class="editable-cell-value-wrap text-truncate">
                  {{ comprehensiveScore?.studyStatus === 'SELECKED_CLASS'
                  ? '已选未修' : comprehensiveScore?.studyStatus === 'OPEN_CLASS'
                  ? '在修未结课' : comprehensiveScore?.studyStatus === 'END_CLASS'
                  ? '已结课' : '无'
                }}
                </div>
              </div>
            </ng-template>
          </nz-form-control>
        </nz-form-item> -->
        </div>
      </div>

      <div nz-row [nzGutter]="24">
        <b style="color: red;"><span>
            思想分
            <i nz-icon nz-tooltip nzTitle="思想分班级中分为优、良、中和差，班级人数占比为：1：2：1" style="color: red;" nzType="question-circle"
              nzTheme="outline"></i> </span></b>
        <nz-divider nzType="horizontal"></nz-divider>
        <div nz-col [nzSpan]="8">
          <nz-form-item nzFlex nz-row>
            <nz-form-label [nzSpan]="10" nzFor="politicalIdeaPoint" nzRequired><span>
                思想政治观念分
                <i nz-icon nz-tooltip nzTitle="优：12-15，良：8-11，中：5-7，差：0-2，上限15分" style="color: red;"
                  nzType="question-circle" nzTheme="outline"></i> </span></nz-form-label>
            <nz-form-control [nzSpan]="14" nzHasFeedback [nzValidateStatus]="validateForm.controls['required']"
              nzErrorTip="思想政治观念分必填!">
              <nz-input-number [(ngModel)]="comprehensiveScore.ideologicalPoint.politicalIdeaPoint"
                formControlName="politicalIdeaPoint" [nzMin]="0" [nzMax]="15" [nzStep]="1"
                *ngIf="!isPreView; else politicalIdeaPointTemp" (ngModelChange)="calculateIdeologicalTotal()">
              </nz-input-number>
              <ng-template #politicalIdeaPointTemp>
                <div class="editable-cell">
                  <div class="editable-cell-value-wrap text-truncate">
                    {{ comprehensiveScore?.ideologicalPoint?.politicalIdeaPoint }}
                  </div>
                </div>
              </ng-template>
            </nz-form-control>
          </nz-form-item>
        </div>
        <div nz-col [nzSpan]="8">
          <nz-form-item nzFlex nz-row>
            <nz-form-label [nzSpan]="10" nzFor="disciplineIdeaPoint" nzRequired><span>
                纪律观念分
                <i nz-icon nz-tooltip nzTitle="优：12-14，良：8-11，中：5-7，差：0-2，上限14分" style="color: red;"
                  nzType="question-circle" nzTheme="outline"></i> </span></nz-form-label>
            <nz-form-control [nzSpan]="14" nzHasFeedback [nzValidateStatus]="validateForm.controls['required']"
              nzErrorTip="纪律观念分必填!">
              <nz-input-number [(ngModel)]="comprehensiveScore.ideologicalPoint.disciplineIdeaPoint"
                formControlName="disciplineIdeaPoint" [nzMin]="0" [nzMax]="14" [nzStep]="1"
                *ngIf="!isPreView; else disciplineIdeaPointTemp" (ngModelChange)="calculateIdeologicalTotal()">
              </nz-input-number>
              <ng-template #disciplineIdeaPointTemp>
                <div class="editable-cell">
                  <div class="editable-cell-value-wrap text-truncate">
                    {{ comprehensiveScore?.ideologicalPoint?.disciplineIdeaPoint }}
                  </div>
                </div>
              </ng-template>
            </nz-form-control>
          </nz-form-item>
        </div>
        <div nz-col [nzSpan]="8">
          <nz-form-item nzFlex nz-row>
            <nz-form-label [nzSpan]="10" nzFor="collectiveIdeaPoint" nzRequired><span>
                集体观念分
                <i nz-icon nz-tooltip nzTitle="优：11-13，良：8-10，中：5-7，差：0-2，上限13分" style="color: red;"
                  nzType="question-circle" nzTheme="outline"></i> </span></nz-form-label>
            <nz-form-control [nzSpan]="14" nzHasFeedback [nzValidateStatus]="validateForm.controls['required']"
              nzErrorTip="集体观念分必填!">
              <nz-input-number [(ngModel)]="comprehensiveScore.ideologicalPoint.collectiveIdeaPoint"
                formControlName="collectiveIdeaPoint" [nzMin]="0" [nzMax]="13" [nzStep]="1"
                *ngIf="!isPreView; else collectiveIdeaPointTemp" (ngModelChange)="calculateIdeologicalTotal()">
              </nz-input-number>
              <ng-template #collectiveIdeaPointTemp>
                <div class="editable-cell">
                  <div class="editable-cell-value-wrap text-truncate">
                    {{ comprehensiveScore?.ideologicalPoint?.collectiveIdeaPoint }}
                  </div>
                </div>
              </ng-template>
            </nz-form-control>
          </nz-form-item>
        </div>
      </div>

      <div nz-row [nzGutter]="24">
        <div nz-col [nzSpan]="8">
          <nz-form-item nzFlex nz-row>
            <nz-form-label [nzSpan]="10" nzFor="basicCivilizationPoint" nzRequired><span>
                基础文明修养分
                <i nz-icon nz-tooltip nzTitle="优：11-13，良：8-10，中：5-7，差：0-2，上限13分" style="color: red;"
                  nzType="question-circle" nzTheme="outline"></i> </span></nz-form-label>
            <nz-form-control [nzSpan]="14" nzHasFeedback [nzValidateStatus]="validateForm.controls['required']"
              nzErrorTip="基础文明修养分必填!">
              <nz-input-number [(ngModel)]="comprehensiveScore.ideologicalPoint.basicCivilizationPoint"
                formControlName="basicCivilizationPoint" [nzMin]="0" [nzMax]="13" [nzStep]="1"
                *ngIf="!isPreView; else basicCivilizationPointTemp" (ngModelChange)="calculateIdeologicalTotal()">
              </nz-input-number>
              <ng-template #basicCivilizationPointTemp>
                <div class="editable-cell">
                  <div class="editable-cell-value-wrap text-truncate">
                    {{ comprehensiveScore?.ideologicalPoint?.basicCivilizationPoint }}
                  </div>
                </div>
              </ng-template>
            </nz-form-control>
          </nz-form-item>
        </div>
        <div nz-col [nzSpan]="8">
          <nz-form-item nzFlex nz-row>
            <nz-form-label [nzSpan]="10" nzFor="apartmentPerformancePoint" nzRequired><span>
                学生公寓表现分
                <i nz-icon nz-tooltip nzTitle="优：13-15，良：8-12，中：5-7，差：0-2，上限15分" style="color: red;"
                  nzType="question-circle" nzTheme="outline"></i> </span></nz-form-label>
            <nz-form-control [nzSpan]="14" nzHasFeedback [nzValidateStatus]="validateForm.controls['required']"
              nzErrorTip="学生公寓表现分必填!">
              <nz-input-number [(ngModel)]="comprehensiveScore.ideologicalPoint.apartmentPerformancePoint"
                formControlName="apartmentPerformancePoint" [nzMin]="0" [nzMax]="15" [nzStep]="1"
                *ngIf="!isPreView; else apartmentPerformancePointTemp" (ngModelChange)="calculateIdeologicalTotal()">
              </nz-input-number>
              <ng-template #apartmentPerformancePointTemp>
                <div class="editable-cell">
                  <div class="editable-cell-value-wrap text-truncate">
                    {{ comprehensiveScore?.ideologicalPoint?.apartmentPerformancePoint }}
                  </div>
                </div>
              </ng-template>
            </nz-form-control>
          </nz-form-item>
        </div>
        <div nz-col [nzSpan]="8">
          <nz-form-item nzFlex nz-row>
            <nz-form-label [nzSpan]="10" nzFor="socialPracticePoint" nzRequired><span>
                社会实践分
                <i nz-icon nz-tooltip nzTitle="优：13-15，良：8-12，中：5-7，差：0-2，上限15分" style="color: red;"
                  nzType="question-circle" nzTheme="outline"></i> </span></nz-form-label>
            <nz-form-control [nzSpan]="14" nzHasFeedback [nzValidateStatus]="validateForm.controls['required']"
              nzErrorTip="社会实践分必填!">
              <nz-input-number [(ngModel)]="comprehensiveScore.ideologicalPoint.socialPracticePoint"
                formControlName="socialPracticePoint" [nzMin]="0" [nzMax]="15" [nzStep]="1"
                *ngIf="!isPreView; else socialPracticePointTemp" (ngModelChange)="calculateIdeologicalTotal()">
              </nz-input-number>
              <ng-template #socialPracticePointTemp>
                <div class="editable-cell">
                  <div class="editable-cell-value-wrap text-truncate">
                    {{ comprehensiveScore?.ideologicalPoint?.socialPracticePoint }}
                  </div>
                </div>
              </ng-template>
            </nz-form-control>
          </nz-form-item>
        </div>
      </div>

      <div nz-row [nzGutter]="24">
        <div nz-col [nzSpan]="8">
          <nz-form-item nzFlex nz-row>
            <nz-form-label [nzSpan]="10" nzFor="rewardPoint" nzRequired><span>
                奖励分
                <i nz-icon nz-tooltip nzTitle="需有加分证明材料存在才有效" style="color: red;" nzType="question-circle"
                  nzTheme="outline"></i> </span></nz-form-label>
            <nz-form-control [nzSpan]="14" nzHasFeedback [nzValidateStatus]="validateForm.controls['required']"
              nzErrorTip="奖励分必填，上限15，下限为0!">
              <nz-input-number [(ngModel)]="comprehensiveScore.ideologicalPoint.rewardPoint"
                formControlName="rewardPointI" [nzMin]="0" [nzMax]="15" [nzStep]="1"
                *ngIf="!isPreView; else rewardPointTempI" (ngModelChange)="calculateIdeologicalTotal()">
              </nz-input-number>
              <ng-template #rewardPointTempI>
                <div class="editable-cell">
                  <div class="editable-cell-value-wrap text-truncate">
                    {{ comprehensiveScore?.ideologicalPoint?.rewardPoint }}
                  </div>
                </div>
              </ng-template>
            </nz-form-control>
          </nz-form-item>
        </div>
        <div nz-col [nzSpan]="8">
          <nz-form-item nzFlex nz-row>
            <nz-form-label [nzSpan]="10" nzFor="deductionPoint" nzRequired><span>
                扣除分
                <i nz-icon nz-tooltip nzTitle="该学年内被学校通报批评并发红头文件，按要求扣分，严禁瞒报" style="color: red;"
                  nzType="question-circle" nzTheme="outline"></i> </span></nz-form-label>
            <nz-form-control [nzSpan]="14" nzHasFeedback [nzValidateStatus]="validateForm.controls['required']"
              nzErrorTip="扣除分必填!">
              <nz-input-number [(ngModel)]="comprehensiveScore.ideologicalPoint.deductionPoint"
                formControlName="deductionPointI" [nzMin]="0" [nzMax]="15" [nzStep]="1"
                *ngIf="!isPreView; else deductionPointTempI" (ngModelChange)="calculateIdeologicalTotal()">
              </nz-input-number>
              <ng-template #deductionPointTempI>
                <div class="editable-cell">
                  <div class="editable-cell-value-wrap text-truncate">
                    {{ comprehensiveScore?.ideologicalPoint?.deductionPoint }}
                  </div>
                </div>
              </ng-template>
            </nz-form-control>
          </nz-form-item>
        </div>
        <div nz-col [nzSpan]="8">
          <nz-form-item nzFlex nz-row>
            <nz-form-label [nzSpan]="10"><span>
                思想分小计
                <i nz-icon nz-tooltip nzTitle="基础分、奖励分与扣除分的合计（未 * 20%）" style="color: red;" nzType="question-circle"
                  nzTheme="outline"></i> </span></nz-form-label>
            <nz-form-control [nzSpan]="14">
              <div class="editable-cell">
                <div class="editable-cell-value-wrap text-truncate">
                  {{ comprehensiveScore?.ideologicalPoint?.ideologicalTotal }}
                </div>
              </div>
            </nz-form-control>
          </nz-form-item>
        </div>
      </div>

      <div nz-row [nzGutter]="24">
        <div nz-col [nzSpan]="8">
          <nz-form-item nzFlex nz-row>
            <nz-form-label [nzSpan]="10" nzFor="teacherName"><span>
                加分材料
                <i nz-icon nz-tooltip nzTitle="奖励分所必需的加分材料" style="color: red;" nzType="question-circle"
                  nzTheme="outline"></i> </span></nz-form-label>
            <nz-form-control [nzSpan]="14">
              <button nz-button nzType="primary"
                (click)="uploadAttach('思想分加分材料', comprehensiveScore?.ideologicalPoint?.files)">
                <i nz-icon nzType="plus" nzTheme="outline"></i>材料管理
              </button>
            </nz-form-control>
          </nz-form-item>
        </div>
      </div>

      <app-attach-small #attachSmallComponent [attachFiles]="attachFiles" [attachType]="fileType" [isShow]="isShow"
        [readOnly]="isReview" (result)="resultChange($event)"></app-attach-small>

      <div nz-row [nzGutter]="24">
        <b style="color: red;">文体分</b>
        <nz-divider nzType="horizontal"></nz-divider>
        <!-- <div nz-col [nzSpan]="8">
        <nz-form-item nzFlex nz-row>
          <nz-form-label [nzSpan]="10" nzFor="fitnessTest">体测成绩</nz-form-label>
          <nz-form-control [nzSpan]="14" nzHasFeedback [nzValidateStatus]="validateForm.controls['required']"
            nzErrorTip="体测成绩必填!">
            <nz-input-number [ngModel]="comprehensiveScore.stylisticPoint.pePoint" formControlName="fitnessTest"
              [nzMin]="0" [nzMax]="15" [nzStep]="1" *ngIf="!isPreView; else fitnessTestTemp"
              (ngModelChange)="calculationStylisticTotal()"></nz-input-number>
            <ng-template #fitnessTestTemp>
              <div class="editable-cell">
                <div class="editable-cell-value-wrap text-truncate">
                  {{ comprehensiveScore?.stylisticPoint?.pePoint / 0.6 }}
                </div>
              </div>
            </ng-template>
          </nz-form-control>
        </nz-form-item>
      </div> -->
        <div nz-col [nzSpan]="8">
          <nz-form-item nzFlex nz-row>
            <nz-form-label [nzSpan]="10" nzFor="pePoint" nzRequired><span>
                体育课分
                <i nz-icon nz-tooltip nzTitle="体育课分 = 体质健康监测达标成绩 * 60%" style="color: red;" nzType="question-circle"
                  nzTheme="outline"></i> </span></nz-form-label>
            <nz-form-control [nzSpan]="14" nzHasFeedback [nzValidateStatus]="validateForm.controls['required']"
              nzErrorTip="体育课分必填!">
              <nz-input-number [(ngModel)]="comprehensiveScore.stylisticPoint.pePoint" formControlName="pePoint"
                [nzMin]="0" [nzMax]="60" [nzStep]="1" *ngIf="!isPreView; else pePointTempS"
                (ngModelChange)="calculationStylisticTotal()"></nz-input-number>
              <ng-template #pePointTempS>
                <div class="editable-cell">
                  <div class="editable-cell-value-wrap text-truncate">
                    {{ comprehensiveScore?.stylisticPoint?.pePoint }}
                  </div>
                </div>
              </ng-template>
            </nz-form-control>
          </nz-form-item>
        </div>
        <div nz-col [nzSpan]="8">
          <nz-form-item nzFlex nz-row>
            <nz-form-label [nzSpan]="10" nzFor="activityPoint" nzRequired><span>
                文体活动分
                <i nz-icon nz-tooltip nzTitle="文体活动分班级中分为优、良、中和差，班级人数占比为：1：2：1，优：8-10，良：6-7，中：3-5，差：0-2，上限30分"
                  style="color: red;" nzType="question-circle" nzTheme="outline"></i> </span></nz-form-label>
            <nz-form-control [nzSpan]="14" nzHasFeedback [nzValidateStatus]="validateForm.controls['required']"
              nzErrorTip="文体活动分必填!">
              <nz-input-number [(ngModel)]="comprehensiveScore.stylisticPoint.activityPoint"
                formControlName="activityPoint" [nzMin]="0" [nzMax]="10" [nzStep]="1"
                *ngIf="!isPreView; else activityPointTemp" (ngModelChange)="calculationStylisticTotal()">
              </nz-input-number>
              <ng-template #activityPointTemp>
                <div class="editable-cell">
                  <div class="editable-cell-value-wrap text-truncate">
                    {{ comprehensiveScore?.stylisticPoint?.activityPoint }}
                  </div>
                </div>
              </ng-template>
            </nz-form-control>
          </nz-form-item>
        </div>
        <div nz-col [nzSpan]="8">
          <nz-form-item nzFlex nz-row>
            <nz-form-label [nzSpan]="10" nzFor="rewardPoint" nzRequired><span>
                奖励分
                <i nz-icon nz-tooltip nzTitle="需有加分证明材料存在才有效" style="color: red;" nzType="question-circle"
                  nzTheme="outline"></i> </span></nz-form-label>
            <nz-form-control [nzSpan]="14" nzHasFeedback [nzValidateStatus]="validateForm.controls['required']"
              nzErrorTip="奖励分必填，上限为30，下限为0!">
              <nz-input-number [(ngModel)]="comprehensiveScore.stylisticPoint.rewardPoint"
                formControlName="rewardPointS" [nzMin]="0" [nzMax]="30" [nzStep]="1"
                *ngIf="!isPreView; else rewardPointTempS" (ngModelChange)="calculationStylisticTotal()">
              </nz-input-number>
              <ng-template #rewardPointTempS>
                <div class="editable-cell">
                  <div class="editable-cell-value-wrap text-truncate">
                    {{ comprehensiveScore?.stylisticPoint?.rewardPoint }}
                  </div>
                </div>
              </ng-template>
            </nz-form-control>
          </nz-form-item>
        </div>
      </div>

      <div nz-row [nzGutter]="24">
        <div nz-col [nzSpan]="8">
          <nz-form-item nzFlex nz-row>
            <nz-form-label [nzSpan]="10" nzFor="deductionPoint" nzRequired><span>
                扣除分
                <i nz-icon nz-tooltip nzTitle="该学年内被学校通报批评并发红头文件，按要求扣分，严禁瞒报" style="color: red;"
                  nzType="question-circle" nzTheme="outline"></i> </span></nz-form-label>
            <nz-form-control [nzSpan]="14" nzHasFeedback [nzValidateStatus]="validateForm.controls['required']"
              nzErrorTip="扣除分必填!">
              <nz-input-number [(ngModel)]="comprehensiveScore.stylisticPoint.deductionPoint"
                formControlName="deductionPointS" [nzMin]="0" [nzStep]="1" *ngIf="!isPreView; else deductionPointTempS"
                (ngModelChange)="calculationStylisticTotal()">
              </nz-input-number>
              <ng-template #deductionPointTempS>
                <div class="editable-cell">
                  <div class="editable-cell-value-wrap text-truncate">
                    {{ comprehensiveScore?.stylisticPoint?.deductionPoint }}
                  </div>
                </div>
              </ng-template>
            </nz-form-control>
          </nz-form-item>
        </div>
        <div nz-col [nzSpan]="8">
          <nz-form-item nzFlex nz-row>
            <nz-form-label [nzSpan]="10"><span>
                文体分小计
                <i nz-icon nz-tooltip nzTitle="基础分、奖励分与扣除分的合计（未*10%）" style="color: red;" nzType="question-circle"
                  nzTheme="outline"></i> </span></nz-form-label>
            <nz-form-control [nzSpan]="14">
              <div class="editable-cell">
                <div class="editable-cell-value-wrap text-truncate">
                  {{ comprehensiveScore?.stylisticPoint?.stylisticTotal }}
                </div>
              </div>
            </nz-form-control>
          </nz-form-item>
        </div>
      </div>

      <div nz-row [nzGutter]="24">
        <div nz-col [nzSpan]="8">
          <nz-form-item nzFlex nz-row>
            <nz-form-label [nzSpan]="10" nzFor="teacherName"><span>
                加分材料
                <i nz-icon nz-tooltip nzTitle="奖励分所必需的加分材料" style="color: red;" nzType="question-circle"
                  nzTheme="outline"></i> </span></nz-form-label>
            <nz-form-control [nzSpan]="14">
              <button nz-button nzType="primary"
                (click)="uploadAttach('文体分加分材料', comprehensiveScore?.stylisticPoint?.files)">
                <i nz-icon nzType="plus" nzTheme="outline"></i>材料管理
              </button>
            </nz-form-control>
          </nz-form-item>
        </div>
      </div>

      <div nz-row [nzGutter]="24">
        <b style="color: red;">学业分</b>
        <nz-divider nzType="horizontal"></nz-divider>
        <div nz-col [nzSpan]="8">
          <nz-form-item nzFlex nz-row>
            <nz-form-label [nzSpan]="10" nzFor="academicRecord" nzRequired><span>
                学习成绩分
                <i nz-icon nz-tooltip nzTitle="学习成绩分 =（必修课（含课程设计、实习）和专业选修课学分绩点之和 ÷ 相应学分之和 +5）×9" style="color: red;"
                  nzType="question-circle" nzTheme="outline"></i> </span></nz-form-label>
            <nz-form-control [nzSpan]="14" nzHasFeedback [nzValidateStatus]="validateForm.controls['required']"
              nzErrorTip="学习成绩分必填!">
              <nz-input-number [(ngModel)]="comprehensiveScore.academicPoint.academicRecord"
                formControlName="academicRecord" [nzMin]="0" [nzStep]="1" *ngIf="!isPreView; else fitnessTestTemp"
                (ngModelChange)="calculationAcademicTotal()"></nz-input-number>
              <ng-template #fitnessTestTemp>
                <div class="editable-cell">
                  <div class="editable-cell-value-wrap text-truncate">
                    {{ comprehensiveScore?.academicPoint?.academicRecord }}
                  </div>
                </div>
              </ng-template>
            </nz-form-control>
          </nz-form-item>
        </div>
        <div nz-col [nzSpan]="8">
          <nz-form-item nzFlex nz-row>
            <nz-form-label [nzSpan]="10" nzFor="rewardPoint" nzRequired><span>
                奖励分
                <i nz-icon nz-tooltip nzTitle="需有加分证明材料存在才有效" style="color: red;" nzType="question-circle"
                  nzTheme="outline"></i> </span></nz-form-label>
            <nz-form-control [nzSpan]="14" nzHasFeedback [nzValidateStatus]="validateForm.controls['required']"
              nzErrorTip="奖励分必填，上限为10，下限为0!">
              <nz-input-number [(ngModel)]="comprehensiveScore.academicPoint.rewardPoint" formControlName="rewardPointA"
                [nzMin]="0" [nzMax]="10" [nzStep]="1" *ngIf="!isPreView; else rewardPointTempA"
                (ngModelChange)="calculationAcademicTotal()"></nz-input-number>
              <ng-template #rewardPointTempA>
                <div class="editable-cell">
                  <div class="editable-cell-value-wrap text-truncate">
                    {{ comprehensiveScore?.academicPoint?.rewardPoint }}
                  </div>
                </div>
              </ng-template>
            </nz-form-control>
          </nz-form-item>
        </div>
        <div nz-col [nzSpan]="8">
          <nz-form-item nzFlex nz-row>
            <nz-form-label [nzSpan]="10" nzFor="deductionPoint" nzRequired><span>
                扣除分
                <i nz-icon nz-tooltip nzTitle="该学年内被学校通报批评并发红头文件，按要求扣分，严禁瞒报" style="color: red;"
                  nzType="question-circle" nzTheme="outline"></i> </span></nz-form-label>
            <nz-form-control [nzSpan]="14" nzHasFeedback [nzValidateStatus]="validateForm.controls['required']"
              nzErrorTip="扣除分必填!">
              <nz-input-number [(ngModel)]="comprehensiveScore.academicPoint.deductionPoint"
                formControlName="deductionPointA" [nzMin]="0" [nzStep]="1" *ngIf="!isPreView; else deductionPointTempA"
                (ngModelChange)="calculationAcademicTotal()"></nz-input-number>
              <ng-template #deductionPointTempA>
                <div class="editable-cell">
                  <div class="editable-cell-value-wrap text-truncate">
                    {{ comprehensiveScore?.academicPoint?.deductionPoint }}
                  </div>
                </div>
              </ng-template>
            </nz-form-control>
          </nz-form-item>
        </div>
      </div>

      <div nz-row [nzGutter]="24">
        <div nz-col [nzSpan]="8">
          <nz-form-item nzFlex nz-row>
            <nz-form-label [nzSpan]="10"><span>
                学业分小计
                <i nz-icon nz-tooltip nzTitle="基础分、奖励分与扣除分的合计（未*70%）" style="color: red;" nzType="question-circle"
                  nzTheme="outline"></i> </span></nz-form-label>
            <nz-form-control [nzSpan]="14">
              <div class="editable-cell">
                <div class="editable-cell-value-wrap text-truncate">
                  {{ comprehensiveScore?.academicPoint?.academicTotal }}
                </div>
              </div>
            </nz-form-control>
          </nz-form-item>
        </div>
      </div>

      <div nz-row [nzGutter]="24">
        <div nz-col [nzSpan]="8">
          <nz-form-item nzFlex nz-row>
            <nz-form-label [nzSpan]="10"><span>
                加分材料
                <i nz-icon nz-tooltip nzTitle="奖励分所必需的加分材料" style="color: red;" nzType="question-circle"
                  nzTheme="outline"></i> </span></nz-form-label>
            <nz-form-control [nzSpan]="14">
              <button nz-button nzType="primary"
                (click)="uploadAttach('学业分加分材料', comprehensiveScore?.academicPoint?.files)">
                <i nz-icon nzType="plus" nzTheme="outline"></i>材料管理
              </button>
            </nz-form-control>
          </nz-form-item>
        </div>
      </div>

      <div nz-row [nzGutter]="24">
        <b style="color: red;">综合分明细</b>
        <nz-divider nzType="horizontal"></nz-divider>
        <div nz-col [nzSpan]="8">
          <nz-form-item nzFlex nz-row>
            <nz-form-label [nzSpan]="10"><span>
                思想分合计
                <i nz-icon nz-tooltip nzTitle="思想分小计 * 20%" style="color: red;" nzType="question-circle"
                  nzTheme="outline"></i> </span></nz-form-label>
            <nz-form-control [nzSpan]="14">
              <div class="editable-cell">
                <div class="editable-cell-value-wrap text-truncate">
                  {{ comprehensiveScore?.ideologicalPoint?.ideologicalTotal * 0.2 | number: '1.2-2' }}
                </div>
              </div>
            </nz-form-control>
          </nz-form-item>
        </div>
        <div nz-col [nzSpan]="8">
          <nz-form-item nzFlex nz-row>
            <nz-form-label [nzSpan]="10"><span>
                文体分合计
                <i nz-icon nz-tooltip nzTitle="文体分小计 * 10%" style="color: red;" nzType="question-circle"
                  nzTheme="outline"></i> </span></nz-form-label>
            <nz-form-control [nzSpan]="14">
              <div class="editable-cell">
                <div class="editable-cell-value-wrap text-truncate">
                  {{ comprehensiveScore?.stylisticPoint?.stylisticTotal * 0.1 | number: '1.2-2' }}
                </div>
              </div>
            </nz-form-control>
          </nz-form-item>
        </div>

        <div nz-col [nzSpan]="8">
          <nz-form-item nzFlex nz-row>
            <nz-form-label [nzSpan]="10"><span>
                学业分合计
                <i nz-icon nz-tooltip nzTitle="学业分小计 * 70%" style="color: red;" nzType="question-circle"
                  nzTheme="outline"></i> </span></nz-form-label>
            <nz-form-control [nzSpan]="14">
              <div class="editable-cell">
                <div class="editable-cell-value-wrap text-truncate">
                  {{ comprehensiveScore?.academicPoint.academicTotal * 0.7 | number: '1.2-2' }}
                </div>
              </div>
            </nz-form-control>
          </nz-form-item>
        </div>
      </div>

      <div nz-row [nzGutter]="24">
        <div nz-col [nzSpan]="8">
          <nz-form-item nzFlex nz-row>
            <nz-form-label [nzSpan]="10"><span>
                综合分小计
                <i nz-icon nz-tooltip nzTitle="思想分小计 + 文体分小计 + 学业分小计" style="color: red;" nzType="question-circle"
                  nzTheme="outline"></i> </span></nz-form-label>
            <nz-form-control [nzSpan]="14">
              <div class="editable-cell">
                <div class="editable-cell-value-wrap text-truncate">
                  {{
                  comprehensiveScore?.stylisticPoint?.stylisticTotal +
                    comprehensiveScore?.ideologicalPoint?.ideologicalTotal +
                    comprehensiveScore?.academicPoint?.academicTotal
                }}
                </div>
              </div>
            </nz-form-control>
          </nz-form-item>
        </div>
        <div nz-col [nzSpan]="8">
          <nz-form-item nzFlex nz-row>
            <nz-form-label [nzSpan]="10" nzFor="rewardPoint"><span>
                综合分合计
                <i nz-icon nz-tooltip nzTitle="思想分合计 + 文体分合计 + 学业分合计" style="color: red;" nzType="question-circle"
                  nzTheme="outline"></i> </span></nz-form-label>
            <nz-form-control [nzSpan]="14">
              <div class="editable-cell">
                <div class="editable-cell-value-wrap text-truncate">
                  {{
                  comprehensiveScore?.stylisticPoint?.stylisticTotal * 0.1 +
                    comprehensiveScore?.ideologicalPoint?.ideologicalTotal * 0.2 +
                    comprehensiveScore?.academicPoint?.academicTotal * 0.7 | number: '1.2-2'
                }}
                </div>
              </div>
            </nz-form-control>
          </nz-form-item>
        </div>
      </div>
    </form>
  </div>

  <ng-template #detailFooter>
    <button nz-button nzType="primary" (click)="save(false)" *ngIf="!isPreView || isReport" [nzLoading]="loading">
      <span>保存</span>
    </button>
    <button nz-button nzType="primary" (click)="save(true)" [acl]="['ROLE_STUDENT']"
      *ngIf="isPreView && comprehensiveScore?.compAssessProcessStatus === 'SELF_ASSESSMENT' && !isReport && !comprehensiveScore?.isReport"
      [nzLoading]="loading">
      <span>送审</span>
    </button>
    <button nz-button nzType="primary" (click)="save(true)" [acl]="['ROLE_CLASS_EVALUATION_ADMIN']"
      *ngIf="isPreView && comprehensiveScore?.compAssessProcessStatus === 'CLASS_ASSESSMENT' && !isReport && !comprehensiveScore?.isReport"
      [nzLoading]="loading">
      <span>送审</span>
    </button>
    <button nz-button nzType="primary" (click)="save(true)" [acl]="['ROLE_INSTRUCTOR']"
      *ngIf="isPreView && comprehensiveScore?.compAssessProcessStatus === 'GRADE_REVIEW' && !isReport && !comprehensiveScore?.isReport"
      [nzLoading]="loading">
      <span>送审</span>
    </button>
    <button nz-button nzType="primary" (click)="save(true)" [acl]="['ROLE_INSTRUCTOR']"
      *ngIf="isPreView && comprehensiveScore?.compAssessProcessStatus === 'DONE_ASSESSMENT' && !isReport && !comprehensiveScore?.isReport"
      [nzLoading]="loading">
      <span>审结</span>
    </button>
    <button nz-button nzType="default" (click)="handleCancel()">关闭</button>
  </ng-template>
</nz-modal>
